﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Grinko.Serializator
{
    /// <summary>
    /// The object to serialize
    /// </summary>
    public class JSONObject : IDisposable, IEnumerable
    {

        #region Properties implementation

        /// <summary>
        /// Here recieves encoded stream
        /// </summary>
        /// 
        public string EncodedStream { get; set; }

        #endregion

        #region IEnumerator implementation

        public IEnumerator GetEnumerator()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region Dispose implementation

        ~JSONObject()
        {
            Dispose(false);
        }

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool disposeManager)
        {
            if (m_Disposeble)
                return;

            if (disposeManager)
            {
            }

            m_Disposeble = true;
        }

        private bool m_Disposeble = false;

        #endregion


        
    }
}
